<template>
  <div>
    <el-table :data="list" stripe>
      <el-table-column v-for="col in columns"
        :prop="col.value"
        :key="col.value"
        :label="col.label">
      </el-table-column>
    </el-table>   
  </div>
</template>

<script>
const arr = new Array(10).fill({}).map((item,index) => (
  {
    id:index+1,
    title:"园区垃圾桶坏了"+index,
    content:"园区垃圾桶坏了园区",
    userId:'user'+(index+1)
  }
))
  export default {
    data() {
      return {
        list: arr,
        columns:[{label:"id",value:"id"},{label:"标题",value:"title"},{label:"内容",value:"content"},{label:"用户",value:"userId"}]
      }
    },
  }
</script>

<style lang="scss" scoped>

</style>